﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TransStockAudit.aspx.cs" Inherits="Transfer_TransStockAudit" %>

<%@ Register Assembly="WX.WMS.Common" Namespace="WX.WMS.Common" TagPrefix="cc1" %>
<%@ Import Namespace="WX.WMS.BLL" %>
<%@ Import Namespace="WX.WMS.Common" %>
<%@ Import Namespace="WX.WMS.DataModel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>调仓单据审核</title>
    
<link href="../css/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../JavaScript/function.js" />
<script type="text/javascript">


</script>
    <style type="text/css">
        .style1
        {
            FONT-WEIGHT: bolder;
            FONT-SIZE: 18pt;
            COLOR: black;
            LINE-HEIGHT: 150%;
            FONT-FAMILY: 楷体_GB2312;
            TEXT-DECORATION: underline;
            height: 50px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div  style=" margin:0 auto; text-align:center;">
        <br />
        <%--<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>

          <table width="100%" border="0">
              <tr>
                  <td class="style1" align="center" colspan="9">
                      调仓单据审核</td>
              </tr>
              <tr>
              <td  Width="10%">
                    制单用户
              </td>
              <td  Width="10%">
                    <asp:TextBox ID="CreateUser" runat="server"  Width="95%" ></asp:TextBox>
              </td>
              <td  Width="10%">
                    状态 
              </td>
              <td  Width="10%">
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="100%"></asp:DropDownList>
              </td>
              <td  Width="10%">
                    制单日期
              </td>
              <td  Width="10%">
                    <asp:TextBox ID="CreateDateFrom" runat="server" Width="83px" ></asp:TextBox>
                    <IMG style="CURSOR: hand" onclick="fPopUpCalendarDlg(CreateDateFrom);return false;" height=16 
                        alt=弹出日历下拉菜单 src="../images/calendar.gif" width=16>
                    </td>
              <td  Width="10%">
                    <asp:Label ID="lblTo" runat="server" Text="到"></asp:Label>
                    </td>
              <td  Width="10%">
                    <asp:TextBox ID="CreateDateTo" runat="server" Width="83px" ></asp:TextBox>
                    <IMG style="CURSOR: hand" onclick="fPopUpCalendarDlg(CreateDateTo);return false;" height=16 
                        alt=弹出日历下拉菜单 src="../images/calendar.gif" width=16>
                    </td>
              <td  Width="10%">
                    <asp:ImageButton ID="searchButton" runat="server" ImageUrl="~/images/sub_search.gif" OnClick="searchButton_Click" />
                    </td>
          </tr>
              <tr>
                <td colspan="9">
                <cc1:GridView ID="gvTransStockList" runat="server" AutoGenerateColumns="False" 
                        BackColor="White" AllowPaging="true"  PageSize="10"
                        BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                        Width="100%" DataKeyNames="TRANSFER_ID" CheckTemplateStyle="CheckTemplateStyle" EnableEmptyContentRender="True" 
                        ShowSelectBox="true" onpageindexchanging="gvTransStockList_PageIndexChanging"   >
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="TRANSFER_ID" DataNavigateUrlFormatString="TransStockDetail.aspx?action=view&amp;ID={0}"
                                HeaderText="查看详细" Target="_blank" Text="&lt;img border=0 src=../images/View.gif /&gt;" >
                            <ItemStyle Width="60px" />
                            </asp:HyperLinkField>
                          <asp:BoundField DataField="SERIAL_NO" HeaderText="流水号"  />                       
                       <asp:TemplateField HeaderText="制单用户" SortExpression="T_SYS_USER1.NAME">
                             <ItemTemplate>
                             <%# ((T_TRANSFER)Container.DataItem).T_SYS_USER1 == null ? "" :((T_TRANSFER)Container.DataItem).T_SYS_USER1.NAME%>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="制单时间" >
                             <ItemTemplate>
                             <%# ((T_TRANSFER)Container.DataItem).CREATE_TIME == null ? "" : ((T_TRANSFER)Container.DataItem).CREATE_TIME.Value.ToShortDateString()%>
                             </ItemTemplate>                 
                        </asp:TemplateField>                              
                        <asp:TemplateField HeaderText="审核用户" SortExpression="T_SYS_USER.NAME">
                             <ItemTemplate>
                             <%# ((T_TRANSFER)Container.DataItem).T_SYS_USER == null ? "" : ((T_TRANSFER)Container.DataItem).T_SYS_USER.NAME %>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="审核时间" >
                             <ItemTemplate>
                             <%# ((T_TRANSFER)Container.DataItem).AUDIT_TIME == null ? "" : ((T_TRANSFER)Container.DataItem).AUDIT_TIME.Value.ToShortDateString()%>
                             </ItemTemplate>                 
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="状态" SortExpression="STATUS">
                             <ItemTemplate>
                             <%# Enum.GetName(typeof(Enumerations.StockStatus), ((T_TRANSFER)Container.DataItem).STATE)%>
                             </ItemTemplate>                 
                         </asp:TemplateField>

                        </Columns>
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
                    </cc1:GridView>
                </td>
              </tr>
              <tr>
                  <td align="center"  colspan="9">
                      <asp:Button ID="btnAudit" runat="server" Text="通过审核" onclick="btnAudit_Click" />
                      <asp:Button ID="btnBack" runat="server" Text="打回单据" onclick="btnBack_Click" />
                  </td>
              </tr>
              <tr>
                <td style="height: 17px" align="center">&nbsp;
                </td>
              </tr>
        </table>
        <%--</ContentTemplate>
        </asp:UpdatePanel>--%>
    </div>
    </form>
</body>
</html>